<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{$SETTING[siteurl]}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="{SKIN_PATH}skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>

<link href="skin/modal.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="images/js/jqModal.js"></script>
<script type="text/javascript" src="{$M[url]}images/js/space.js"></script>
</head>
<body>

{template 'header.html'}


<div class="container">


<div class="row">
	<div class="span1"><a href="{url("?module=yellowpage&userid=$userid")}"><img class="thumbnail" src="{php echo $logo ? thumb($logo,48,48) : 'misc/nopic.gif'}" width="48" height="48"/></a></div>
	<div class="span11">
    	<h4><a href="{url("?module=yellowpage&userid=$userid")}">{$companyname}</a>&nbsp;<span class="label label-warning">企业空间</span></h4> 
        <p>{html_entity_decode(str_cut(strip_tags($introduce),180,'...'))} &nbsp; 
        [<a href="javascript:window.external.AddFavorite(window.location.href,'{$head[title]}')">加入收藏</a>] &nbsp;  
        
        {if $_userid == $userid || $_userid == 1}
        [<a href="{url("?module=$module&file=company&action=basic&userid=$userid")}">修改资料</a>]
        {/if}
        </p>
    </div>
</div>

<br/>
<ul class="nav nav-tabs">
	<li {if !$action || $action=='index'} class="active" {/if}><a href="{url("?module=$module&userid=$userid")}">首页</a></li>
    <li {if $action=='introduce'} class="active" {/if}><a href="{url("?module=$module&action=introduce&userid=$userid")}"><span>公司介绍</span></a></li>
    <li {if $action=='news'} class="active" {/if}><a href="{url("?module=$module&action=news&userid=$userid")}"><span>公司新闻</span></a></li>
    <li {if $action=='product'} class="active" {/if}><a href="{url("?module=$module&action=product&userid=$userid")}"><span>产品展示</span></a></li>
    <li {if $action=='buy'} class="active" {/if}><a href="{url("?module=$module&action=buy&userid=$userid")}"><span>商机</span></a></li>
    <li {if $action=='job'} class="active" {/if}><a href="{url("?module=$module&action=job&userid=$userid")}"><span>人才招聘</span></a></li>
    <li {if $action=='certificate'} class="active" {/if}><a href="{url("?module=$module&action=certificate&userid=$userid")}"><span>资质证书</span></a></li>
    <li {if $action=='guestbook'} class="active" {/if}><a href="{url("?module=$module&action=guestbook&userid=$userid")}"><span>在线留言</span></a></li>
    <li {if $action=='contact'} class="active" {/if}><a href="{url("?module=$module&action=contact&userid=$userid")}"><span>联系方式</span></a></li>
    
    {if $_userid == 1 || $_userid == $userid}
    <li class="dropdown">
    	<a href="{url("?module=$module&file=panel&action=manage&userid=$userid")}" class="dropdown-toggle">管理黄页<b class="caret"></b></a>
    	<ul class="dropdown-menu">
          <li><a href="{url("?module=$module&file=product&action=manage&userid=$userid")}">产品管理</a></li>
          <li><a href="{url("?module=$module&file=product&action=add&userid=$userid")}">产品添加</a></li>
          <li class="divider"></li>
          <li><a href="{url("?module=yellowpage&file=buy&action=manage&userid=$userid")}">管理商机</a></li>
          <li><a href="{url("?module=yellowpage&file=buy&action=add&userid=$userid")}">发布商机</a></li>
          <li class="divider"></li>
          <li><a href="{url("?module=yellowpage&file=news&action=manage&userid=$userid")}">管理新闻</a></li>
          <li><a href="{url("?module=yellowpage&file=news&action=add&userid=$userid")}">发布新闻</a></li>
          <li class="divider"></li>
          <li><a href="{url("?module=yellowpage&file=job&action=manage&userid=$userid")}">管理招聘</a></li>
          <li><a href="{url("?module=yellowpage&file=job&action=add&userid=$userid")}">发布招聘</a></li>
          <li class="divider"></li>
          <li><a href="{url("?module=yellowpage&file=apply&action=manage&userid=$userid")}">人才库</a></li>
          <li><a href="{url("?module=yellowpage&file=guestbook&action=manage&userid=$userid")}">留言管理</a></li>
          <li><a href="{url("?module=yellowpage&file=collect&action=manage&userid=$userid")}">我的收藏</a></li>
          <!--<li><a href="{url("?module=yellowpage&file=template&action=manage&userid=$userid")}">风格管理</a></li>-->
          <li><a href="{url("?module=yellowpage&file=company&action=manage&userid=$userid")}">公司信息</a></li>
          <li><a href="{url("?module=yellowpage&file=map&action=manage&userid=$userid")}">地理位置标注</a></li>
          <li><a href="{url("?module=yellowpage&file=certificate&action=manage&userid=$userid")}">资质证书</a></li>
          <li><a href="{url("?module=yellowpage&file=menu&action=manage&userid=$userid")}">导航菜单管理</a></li>
          <li class="divider"></li>
          <li><a href="{url("?module=member")}">进入会员中心</a></li>
        </ul>
    </li>
    {/if}
   
</ul>
<div class="clear"></div>

<!--<div class="banner">
    <img src="{$banner}"/>
</div>-->

</div>